package com.dhecp.project.business.mapper;

import java.util.List;
import java.util.Map;

import com.dhecp.core.genericDao.GenericDao;
import com.dhecp.project.business.domain.LogsticsPattern;

/**
 * DAO
 * @author Jason
 */
public interface LogsticsPatternMapper extends GenericDao<LogsticsPattern, String>  {

	/**
     * 查询实体
     * @author Jason
	 */
	List<LogsticsPattern> findLogsticsPattern(Map<String, Object> params);

	/**
     * 查询单个实体
     * @author Jason
	 */
	LogsticsPattern queryFirstByGuid(Map<String, Object> params);

	/**
	 * 判断是否有重复code
	 * @param logsticsPattern
	 * @return
	 */
	int countByCode(LogsticsPattern logsticsPattern);

	/**
	 * 新增实体
     * @author Jason
	 */
	int insertLogsticsPattern(LogsticsPattern entity);
	
	/**
	 * 通过guid修改实体
     * @author Jason
	 */
	int updateByGuid(LogsticsPattern entity);

	/**
	 * 通过guid删除数据
	 * @param params
	 * @return
	 */
	int deleteByGuid(LogsticsPattern logsticsPattern);

	/**
	 * code查询单个实体
	 * @author Jason
	 */
	LogsticsPattern queryFirstByCode(String code);

}
